<?php
	require_once "../includes/config.php";
	sleep(1);
	$user_type = $_REQUEST['id'];
	$qry="SELECT * FROM tbl_users where user_type='$user_type'";
	$res=mysql_query($qry);

		if(mysql_num_rows($res) > 0)
		{
		?>
		 <select name="selUser" id="selUser" style="width:145px;">
		<option value="">..Select User..</option>
		<option value="All">All</option>
		<?php
			while($row = mysql_fetch_assoc($res))
			{
			?>
				<option value="<?php echo $row['email'] ?>"><?php echo $row['username'];?></option>
			<?php		
			}
		?>
		</select>
		<?php
		}			
		
		
	?>


